-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Antrea base image to ubuntu:22.04 #4459
Upgrade Antrea base image to ubuntu:22.04 #4459
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4459 +/- ##
==========================================
+ Coverage 67.70% 67.90% +0.19%
==========================================
Files 402 402
Lines 57253 57253
==========================================
+ Hits 38764 38875 +111
+ Misses 15818 15681 -137
- Partials 2671 2697 +26
|
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/test-e2e |
1 similar comment
/test-e2e |
acb94cf
to
027f7ac
Compare
@tnqn @luolanzone could you take another look? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We could use a more specific tag but I assume we need to backport this to older Antrea versions? Otherwise runner's ubuntu version needs to be pinned and user would meet the issue when running Antrea on Jammy if they don't upgrade to 1.10. |
/test-all In previous test, ovs-monitor-ipsec failed to start:
|
/test-all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, one nit. And you may need to update the PR's summary as well.
027f7ac
to
e452270
Compare
By "more specific tag", I assume you mean something based on the current Antrea version? I also consider using a hash (md5sum) of all dependency versions as the build tag (that's what we do for Windows), but decided against it in the end. For the backporting, we have the choice. I think we should at least backport to 1.9, we can also do 1.8 and 1.7. The iptables issue that this is trying to fix is pretty specific: only when using NodePortLocal and only for a specific scenario (sequence of rules). What do you think? |
I have squashed commits |
/test-all |
dceeb06
to
b1ac2d4
Compare
@tnqn I changed the tag format, it is now I just remembered as I was working on this that we always build all base images from scratch when we generate an image for a patch release. I introduced this mechanism a long time ago to avoid such issues. In other words, we only push base images to the Docker registry when we build the "latest" Antrea image, and this is for caching purposes only. I still decided to update the tag, as I don't think it makes sense to keep using the OVS version as the tag forever. In theory we could just use The reason for including the Antrea version is if we want to identify and delete old images from the registry. If this is merged, to add Suricata please:
|
/test-all |
/test-latest-all |
1 similar comment
/test-latest-all |
@antoninbas thanks for the explanation. It also reminds me the original purpose of the base images. Then does it make sense to just use the major + minor parts of antrea VERSION as the tag? Then there will be a "latest" image for each release and we don't need to care about the changes of dependencies and the base images generated during the development cycle. I see it's also a little difficult to predict the image tag in various scripts, for instance, the tag used in But to avoid confusion caused by the tag, "openvswitch:1.10", perhaps we could have some prefix to indicate it's not OVS version, like "openvswitch:antrea-1.10", "base-ubuntu:antrea-1.10"? |
b1ac2d4
to
f7ab437
Compare
@tnqn the simpler approach works for me. I changed the tag to |
/test-latest-all |
Ubuntu 20.04 comes with iptables 1.8.4, which seems to have several bugs when used with nft. In particular, we observe that iptables-restore sometimes segfaults when restoring the ANTREA-NODE-PORT-LOCAL chain in the nat table. Ubuntu 22.04 comes with a more recent iptables version, 1.8.7. As part of this change, we change the tag format for base images (antrea/openvswitch and antrea/base-ubuntu). We no longer use the OVS version as the tag, instead we use the Antrea minor version number. Fixes antrea-io#4435 Signed-off-by: Antonin Bas <[email protected]>
f7ab437
to
77d5acb
Compare
/test-latest-all |
/test-conformance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks
Fix issue caused by antrea-io#4459 Some images rely on ubuntu:20.04, keep the manual pulling step in e2e. Signed-off-by: gran <[email protected]>
Ubuntu 20.04 comes with iptables 1.8.4, which seems to have several bugs
when used with nft. In particular, we observe that iptables-restore
sometimes segfaults when restoring the ANTREA-NODE-PORT-LOCAL chain in
the nat table. Ubuntu 22.04 comes with a more recent iptables version, 1.8.7.
As part of this change, we change the tag format for base images
(antrea/openvswitch and antrea/base-ubuntu). We no longer use the OVS
version as the tag, instead we use the Antrea minor version number.
Fixes #4435
Signed-off-by: Antonin Bas [email protected]